package com.emergency.db.domain;

import com.emergency.base.domain.BaseEntity;
import com.emergency.db.domain.nuclear.Nuclear;

import javax.persistence.*;


//预案库
@Entity
@Table(name = "bas_preplan")
public class PrePlan extends BaseEntity {

    private String preNum;//预案编号

    private String preName;//预案名称

    private String note;//预案描述

    private Integer type;//预案类型，枚举

    private String testUrl;//预案文本保存地址

    @OneToOne(targetEntity = Nuclear.class, fetch = FetchType.LAZY)
    @JoinColumn(name = "nuclear_id", referencedColumnName = "id")
    private Nuclear nuclear;

    public String getPreNum() {
        return preNum;
    }

    public void setPreNum(String preNum) {
        this.preNum = preNum;
    }

    public String getPreName() {
        return preName;
    }

    public void setPreName(String preName) {
        this.preName = preName;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getTestUrl() {
        return testUrl;
    }

    public void setTestUrl(String testUrl) {
        this.testUrl = testUrl;
    }

    public Nuclear getNuclear() {
        return nuclear;
    }

    public void setNuclear(Nuclear nuclear) {
        this.nuclear = nuclear;
    }
}
